<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.eagle.commons.vo.tbl_PosOperatorDic"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>票据管理系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<jsp:include page="jsp/../common/easyui.jsp"></jsp:include>
	<SCRIPT type="text/javascript">
		<% tbl_PosOperatorDic posoper = (tbl_PosOperatorDic)session.getAttribute("posoper");
       	  String operName = posoper.getOperatorName();
       	  String role=null;
       	  String status=null;
       	  if(Integer.valueOf(posoper.getSpare2())==3){
       	  	role="票据管理员";
       	  }
       	  if(Integer.valueOf(posoper.getSpare2())==4){
       	  	role="普通操理员";
       	  }
       	  if(posoper.getStatus()==1){
       	  	status="有效";
       	  }
       	  if(posoper.getStatus()==2){
       	  	status="注销";
       	  }
      	 %>
       	$(function() {
         $('#loginOut').click(function() {
              var   operID   = "<%=posoper.getOperatorID()%>"; 
              $.messager.defaults = { ok: "是", cancel: "否" };
              $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
                 if (r) {
                  //  LoginDwr.logout(operID,function(){
					location.href="<%= request.getContextPath() %>/jsp/login/login.jsp";
				// });
               }
            });
      	 }) 
        $('#lock').click(function(){
 	     var   sUser   = "<%=posoper.getOperatorID()%>"; 
	     var sPass="<%=posoper.getPassword()%>" ;  
         var   obj1   =  Web800.LockScreen(sUser,sPass); 
           })
        $('#main').click(function(){
              location.href="<%= request.getContextPath() %>/jsp/index.jsp";
            })
        });
     	 function userInfo() {
		$('#dd').dialog("open");  
		}
	</SCRIPT>
  </head>
  
  <body class="easyui-layout" onload="clockon()">
	<div data-options="region:'north',border:false"  style="verflow: hidden;width:100%; height: 60px; repeat-y center 50% ;background-image:url('<%= request.getContextPath() %>/img/body.jpg')" >
	<div style="position: absolute; left: 20px; bottom: 20px;"><span style="font-size: 22px;font-family: Verdana, 微软雅黑,黑体"> 青 海 省 高 等 级 公 路 电 子 收 费 票 据 管 理 系 统</span></div>
        <div style="position: absolute; right: 0px; bottom: 0px; ">
		<a href="javascript:void(0);" class="easyui-menubutton" menu="#kzmbMenu" iconCls="icon-help">控制面板</a><a href="javascript:void(0);" class="easyui-menubutton" menu="#zx" iconCls="icon-back">注销</a>
		</div>
      
	</div>
	<div data-options="region:'west',split:false,title:'West'" iconCls="icon-save" title="导航菜单" style="width:219px;" id="west">
		<div class="easyui-accordion" fit="true" border="false" >
			<s:iterator value="#session.menuList" id="maincd" status="mainst" >
	        	<s:if test="#maincd.MenuLevel == 1">
	   	   	 		<s:if test="#maincd.MenuBm.length() <4">
	   		<div iconCls="<s:property value="#maincd.MenuIcon"/>" title="<s:property value="#maincd.MenuName"/>"  style="overflow:auto;">
	   		<ul>
	   		 <s:iterator value="#session.menuList" id="childcd">
	   		  	<s:if test="#maincd.MenuBm == #childcd.MenuBm.substring(0,2) && #childcd.MenuBm.length() > 3 ">
	   		  		<li><div><a target="mainFrame" href="<s:property value="#childcd.MenuUrl"/>" ><span iconCls="<s:property value="#childcd.MenuIcon"/>" ></span><s:property value="#childcd.MenuName"/></a></div></li>
	   		  			</s:if>  		 
	   		  </s:iterator>
	   		</ul> 
	   		</div> 
	 	 </s:if>
	   </s:if>
	  </s:iterator>
		</div>
	</div>
	<div data-options="region:'south',border:false" style="height: 30px; background-image:url('<%= request.getContextPath() %>/images2/footer_rep.jpg'); ">
	<div class="footer">
      <span style="float:right; "><span style="color: black;" id="bgclock"></span></span> &nbsp;&nbsp;&nbsp;
        <span style="padding-left:300px;  color: black;">山东易构软件技术有限公司 v1.0.0.1 </span>
        </div>
	</div>
	<div data-options="region:'center',title:'【<%=operName %>】欢迎您 '" id="mainPanle" style="background: #eee; overflow-y:hidden">
	 <div id="tabs" class="easyui-tabs"  fit="true" border="false" >
			<div  title="欢迎使用" style="padding:0px;  overflow:hidden" id="home">
				<div align="center" id="mes" class="easyui-panel" title="消息提醒" style="width:470px;height:200px;"  
      			  data-options="iconCls:'icon-tip',resizable:true,modal:false,closable:true,collapsible:true">  
			 		<p>本网点有<span style="font-size: 28px;color:blue" >${num}</span>条待入库信息</p>
			 		<p><br/></p>
			 		<a href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-redo" onclick="addTab('入库管理','stockAction!checkInStock.action');" >点击处理</a>
					 </div>  
				
				
			</div>
		</div>
	</div>
	<div id="kzmbMenu" style="width: 100px; display: none;">
	<div onclick="userInfo();">个人信息</div>
	<div class="menu-sep"></div>
	<div>
		<span>更换主题</span>
		<div style="width: 100px;">
			<div onclick="eagle.changeTheme('default');">default</div>
			<div onclick="eagle.changeTheme('gray');">gray</div>
		</div>
	</div>
	</div>
	<div id="zx" style="width: 100px; display: none;">
	<div id="lock">锁定窗口</div>
	<div class="menu-sep"></div>
	<div id="main">返回主页</div>
	<div id="loginOut">退出系统</div>
	</div>
	<div id="dd" class="easyui-dialog" title="个人信息" style="width:470px;height:200px;"  
        data-options="iconCls:'icon-save',resizable:true,modal:false,closable:true,
          closed:true">  
			<table class="tableForm">
				<tr>
					<th style="width: 55px;">工号:</th>
					<td><input readonly="readonly" value="${posoper.operatorID}" /></td>
					<th>姓名:</th>
					<td><input readonly="readonly" value="${posoper.operatorName}" /></td>
				</tr>
				<tr>
					<th>网点编号:</th>
					<td><input readonly="readonly" value="${posoper.BL_PosID}"/></td>
					<th>角色:</th>
					<td><input readonly="readonly" value="<%=role %>" /></td>
				</tr>
				<tr>
					<th>注册时间：</th>
					<td><input readonly="readonly" value="${posoper.registerTime_str}"/></td>
					<th>最后登录时间：</th>
					<td><input readonly="readonly" value="${posoper.lastLoginTime_str}"/></td>
				</tr>
				<tr >
					<th>状态</th>
					<td><input readonly="readonly" value="<%=status %>" /></td>
				</tr>
			</table>
	</div>  
	
</body>
<OBJECT id=Web800  classid=clsid:05A49A00-C678-4734-B0CC-8849B78F0DEF></OBJECT>
</html>
